cmake_minimum_required(VERSION 3.20)
project(traject_path)

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(std_msgs REQUIRED)

add_executable(path_pub src/path_pub.cpp)

target_include_directories(path_pub PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
  $<INSTALL_INTERFACE:include>)
target_compile_features(path_pub PUBLIC c_std_99 cxx_std_17)  # Require C99 and C++17
ament_target_dependencies(
  path_pub
   rclcpp geometry_msgs nav_msgs 

)

 
install(TARGETS path_pub 
  DESTINATION lib/${PROJECT_NAME}
)
 
#install(DIRECTORY rviz 
#  DESTINATION share/${PROJECT_NAME}
#)
ament_package()